package com.salon.client;

import com.extjs.gxt.ui.client.widget.Info;

public class InfoHelper {
	public static String getError(String err) {
		return "<font color = red>" + err + "</font>";
	}
	
	public static String getWarning(String err) {
		return "<font color = green>" + err + "</font>";
	}
	
	public static void sendError(String err) {
		String error = "<font color = red>" + err + "</font>";	
		Info.display(getError("Ошибка"), error);
	}
	public static void sendSuccess(String text) {
		String message = "<font color = green>" + text + "</font>";	
		Info.display(message, getWarning("Успешно"));
	}
}
